package hanqi.llbrary.DAO;


import hanqi.llbrary.entity.book;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BookDAO extends JpaRepository<book, Long> {
  List<book> findByTitleContains(String title);
  @Query(value = "select authorInfo from book",nativeQuery = true)
  List<String> getAuthorList();
}
